package cn.lee.test.model;

import cn.lee.test.common.base.model.BaseJpaModel;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author : lichl(李承霖)
 * create: 2022/2/23 22:25 周三
 */

@Data
@Entity
@Table(
  name = "user_token",
  indexes = {
    @Index(name = "id", columnList = "id", unique = true),
    @Index(name = "user_id", columnList = "userId", unique = true)
  }
)
public class UserToken  extends BaseJpaModel implements Serializable{
  
  @Column
  private Long userId;
  
  @Column(length = 30)
  private String userNickName;
  
  @Column(length = 255)
  private String tokenString;
  
}
